T
User-defined dialog result type.
Cocktail Help Reference
ShowMessageAsync<T>(IEnumerable<IDialogUICommand<T>>,String,String) Method
See Also  Send Feedback
Cocktail Assembly > Cocktail Namespace > IDialogManager Interface > ShowMessageAsync Method : ShowMessageAsync<T>(IEnumerable<IDialogUICommand<T>>,String,String) Method



commands
A list of commands that can be invoked as part of the message box.
message
The message to display.
title
Optional title of the message box.

Glossary Item Box

Displays a modal message box.

Syntax

Visual Basic (Declaration) 
Overloads Function ShowMessageAsync(Of T)( _
   ByVal commands As IEnumerable(Of IDialogUICommand(Of T)), _
   ByVal message As String, _
   Optional ByVal title As String _
) As Task(Of T)
Visual Basic (Usage)Copy Code
Dim instance As IDialogManager
Dim commands As IEnumerable(Of IDialogUICommand(Of T))
Dim message As String
Dim title As String
Dim value As Task(Of T)
 
value = instance.ShowMessageAsync(Of T)(commands, message, title)
C# 
Task<T> ShowMessageAsync<T>( 
   IEnumerable<IDialogUICommand<T>> commands,
   string message,
   string title
)
C++/CLI 
Task<T^>^ ShowMessageAsyncgeneric<typename T>
( 
   IEnumerable<IDialogUICommand<T^>^>^ commands,
   String^ message,
   String^ title
) 

Parameters

commands
A list of commands that can be invoked as part of the message box.
message
The message to display.
title
Optional title of the message box.

Type Parameters

T
User-defined dialog result type.

Return Value

The dialog result.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.